import request from '../util/request.js'
const baseUrl = "user/account/"

export function getAccountList(data) {
	return request.get(baseUrl + "list", data, {
		noAuth: false
	})
}


export function getAccountListAll() {
	return request.get(baseUrl + "list/all", {}, {
		noAuth: false
	})
}

export function bindBank(data) {
	return request.post(baseUrl + "bind/bank", data, {
		noAuth: false
	})
}


export function bindWechat(data) {
	return request.post(baseUrl + "bind/wechat", data, {
		noAuth: false
	})
}

export function bindAlipay(data) {
	return request.post(baseUrl + "bind/alipay", data, {
		noAuth: false
	})
}


export function updateAlipay(data) {
	return request.post(baseUrl + "update/alipay", data, {
		noAuth: false
	})
}

export function updateWechat(data) {
	return request.post(baseUrl + "update/wechat", data, {
		noAuth: false
	})
}


export function updateBank(data) {
	return request.post(baseUrl + "update/bank", data, {
		noAuth: false
	})
}

export function getAlipayDetail(data) {
	return request.get(baseUrl + "alipay/detail", data, {
		noAuth: false
	})
}

export function getWechatDetail(data) {
	return request.get(baseUrl + "wechat/detail", data, {
		noAuth: false
	})
}


export function getBankDetail(data) {
	return request.get(baseUrl + "bank/detail", data, {
		noAuth: false
	})
}

export function setDefault(data) {
	return request.get(baseUrl + "set/default", data, {
		noAuth: false
	})
}

export function deleteAccount(data) {
	return request.post(baseUrl + "delete", data, {
		noAuth: false
	})
}
